package cn.edu.nju.software.cdiy.dao;

import java.util.List;

import cn.edu.nju.software.cdiy.bean.Hcomment;
import cn.edu.nju.software.cdiy.bean.Value;

public interface HcommentDao {

	public List<Hcomment> getUserComments(long userid);
	
	public Hcomment saveHcomment(Hcomment comment);
	
	public void deleteHComment(Hcomment comment);
	
	public void deleteHCommentByID(long hcommentid);
	
	//普通用户分页查询
	public List<Hcomment> getUserHCommentPage(int hardwareid, Value hardwaretype, int page);
	
	//专家用户分页查询
	public List<Hcomment> getExpertHCommentPage(int hardwareid, Value hardwaretype, int page);
	
	public int getUserHCommentLength(int hardwareid,Value hardwaretype);
	
	public int getExpertHCommentLength(int hardwareid,Value hardwaretype);
	
	public List<Integer> getUserNumberList(int hardwareid,Value hardwareType);
	
	public List<Integer> getExpertNumberList(int hardwareid,Value hardwaretype);
	
	public Hcomment getNewUserHComment(int hardwareid,Value hardwareType);
	
	public Hcomment getNewExpertHComment(int hardwareid,Value hardwareType);
	
}
